/**
 * 
 */
package co.droidforum.foodx.workers;

import java.util.ArrayList;
import java.util.List;

import co.droidforum.foodx.exception.handlers.AppExceptionHandler;
import co.droidforum.foodx.exception.handlers.RemoteBusinessExceptionHandler;
import co.droidforum.foodx.exception.handlers.RemoteConnectionExceptionHandler;

/**
 * @author andres.alzate
 *
 */
class WorkerConfig {
	
	public static List<ProcessExceptionHandler> list;
	
	public static List<ProcessExceptionHandler> getListProcessExceptionHandlers(){
		if(list == null) {
			list = new ArrayList<ProcessExceptionHandler>();
			list.add(new RemoteConnectionExceptionHandler());
			list.add(new RemoteBusinessExceptionHandler());
			list.add(new AppExceptionHandler());
		}
		
		return list;
	}
}